﻿<UserControl x:Class="HTML5Converter.UC_AddContent"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
              Height="600" Width="1000">
    <Grid>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Contnet" VerticalAlignment="Top" Margin="48,22,0,0"/>
        <TextBox Name="txtContent" HorizontalAlignment="Left" Height="65" TextWrapping="Wrap" VerticalAlignment="Top" Width="565" Margin="110,21,0,0"/>
        <TextBlock HorizontalAlignment="Left" TextWrapping="Wrap" Text="Where" VerticalAlignment="Top" Margin="696,26,0,0"/>
        <ComboBox Name="cmbWhere" HorizontalAlignment="Left" IsEnabled="False" VerticalAlignment="Top" Width="120" Margin="801,22,0,0" SelectionChanged="cmbWhere_SelectionChanged">
            <ComboBoxItem Content="Before HTML Tag" Name="H"></ComboBoxItem>
            <ComboBoxItem Content="Inside Head Tag" Name="D"></ComboBoxItem>
            <ComboBoxItem Content="Inside body Tag" Name="B"></ComboBoxItem>
        </ComboBox>
        <TextBlock Name="lblContentType" Text="Content Type" HorizontalAlignment="Left" TextWrapping="Wrap" VerticalAlignment="Top" Margin="695,62,0,0" />
        <ComboBox Name="cmbContentType" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" Margin="804,63,0,0" SelectionChanged="cmbContentType_SelectionChanged">
            <ComboBoxItem Content="style" Name="S" Selector.IsSelected="True"></ComboBoxItem>
            <ComboBoxItem Content="JavaScript" Name="J"></ComboBoxItem>
            <ComboBoxItem Content="HTMLTag" Name="T"></ComboBoxItem>
            <ComboBoxItem Content="Other" Name="O"></ComboBoxItem>
        </ComboBox>
        <Button Name="btnSave" Content="Save" HorizontalAlignment="Left" VerticalAlignment="Top" Width="74" Margin="394,110,0,0" Click="btnSave_Click"/>
        <Button Name="btnReset" Content="Reset" HorizontalAlignment="Left" VerticalAlignment="Top" Width="76" Margin="516,110,0,0" Click="btnReset_Click"/>
        <DataGrid Name="grdAddContent" AutoGenerateColumns="False" SelectionMode="Single" CanUserAddRows="False" HorizontalAlignment="Left" VerticalAlignment="Top" Height="445" Width="1000" Margin="0,153,0,0" SelectionChanged="grdAddContent_SelectionChanged">
            <DataGrid.Columns>
                <DataGridTemplateColumn Header="Content" Width="500">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding Content}"></Label>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Where" Width="160">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding Where}"></Label>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="ContentType" Width="160">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Label Content="{Binding ContentType}"></Label>
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
                <DataGridTemplateColumn Header="Delete" Width="160">
                    <DataGridTemplateColumn.CellTemplate>
                        <DataTemplate>
                            <Button Name="btnDelete" Content="Delete" Click="btnDelete_Click" />
                        </DataTemplate>
                    </DataGridTemplateColumn.CellTemplate>
                </DataGridTemplateColumn>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</UserControl>
